/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.ems.entity;

import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotNull;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 教室Entity
 * @author zad
 * @version 2018-01-25
 */
public class EmsClassroom extends DataEntity<EmsClassroom> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 教室名称
	private String no;		// 教室号
	private EmsDept dept;		// 所属部门
	private Integer max;		// 教室容量
	private Double area;		// 教室面积
	private String status;		// 是否启用
	
	public EmsClassroom() {
		super();
	}

	public EmsClassroom(String id){
		super(id);
	}

	@Length(min=1, max=64, message="教室名称长度必须介于 1 和 64 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=1, max=64, message="教室号长度必须介于 1 和 64 之间")
	public String getNo() {
		return no;
	}

	public void setNo(String no) {
		this.no = no;
	}
	
	public EmsDept getDept() {
		return dept;
	}

	public void setDept(EmsDept dept) {
		this.dept = dept;
	}

	@NotNull(message="教室容量不能为空")
	public Integer getMax() {
		return max;
	}

	public void setMax(Integer max) {
		this.max = max;
	}
	
	public Double getArea() {
		return area;
	}

	public void setArea(Double area) {
		this.area = area;
	}
	
	@Length(min=0, max=2, message="是否启用长度必须介于 0 和 2 之间")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
}